#include"process.h"
char style[S_NUM] = {'-','.','#','>','<'};
void ProcessOn()
{
    int cnt = 0;
    char arr[NUM];
    memset(arr,'\0',sizeof(arr));
    const char* p ="|\\-/";
    while(cnt<=100)
    {
        printf("[%-100s][%d%%][%c]\r",arr,cnt,p[cnt%4]);
        fflush(stdout);
        arr[cnt++]=style[N];
        usleep(50000);
    }
    printf("\n");
}
